package com.af.security.mgt.account.register.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author : zhenyun.su
 * @since : 2019/6/25
 */
//@PasswordMatches
public class UserDto {
    @NotNull
    @Size(min = 1,message = "{Size.userDto.username}")
    private String username="asu";
    @NotNull
//    @ValidEmail
    @Size(min = 1,message = "{Size.userDto.email}")
    private String email="zhenyun.su@mail.daphne.com.cn";
    @Size(min = 1,max = 11, message = "{Size.userDto.email}")
    private String phone;
    @NotNull
    @Size(min = 6,max = 20,message = "{Size.userDto.password}")
    private String password="123";
    @NotNull
    @Size(min = 6,max = 20,message = "{Size.userDto.password}")
    private String confirmPass="123";

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getConfirmPass() {
        return confirmPass;
    }

    public void setConfirmPass(String confirmPass) {
        this.confirmPass = confirmPass;
    }
}
